//
//  HttpCreateHtml.m
//  HttpServer
//
//  Created by xin.xu on 2017/8/24.
//  Copyright © 2017年 xin.xu. All rights reserved.
//

#import "HttpCreateHtml.h"
#import "UDAlumbPhotoTools.h"
#import "UDPhotoGroupInfo.h"
#import "UDAssetInfo.h"
@implementation HttpCreateHtml
+ (NSString *)albumHtmlFile
{
    NSMutableString *allStr = [[NSMutableString alloc] init];
    NSString *headStr = @"<!DOCTYPE html><html lang=\"en\"><head><meta http-equiv=\"content-type\" content=\"text/html\" charset=\"UTF-8\"><title>JS实现悬浮导航</title><meta name=\"Keywords\" content=\"关键词\"><meta name=\"description\" content=\"描述\"><link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\" media=\"all\"></head><body><div id=\"top\"><img src=\"images/20170715125349.png\" height=\"55\" width=\"1000\"/></div><div id=\"navbg\"><nav><a href=\"#\">公司团队</a><a href=\"#\">科技前沿</a><a href=\"#\">业务咨询</a><a href=\"#\">合作伙伴</a><a href=\"#\">加入我们</a><a href=\"#\">关于前端</a></nav></div>";
    
    
    NSString *bodyStr = @"<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>";
    
    NSString *footStr = @"<script language=\"JavaScript\" src=\"JQuery/jquery-3.2.1.js\"></script><script type=\"text/javascript\">$(document).ready(function () {var topH=$(\"#top\").height();var navbg=$(\"#navbg\");$(window).scroll(function () {if($(window).scrollTop()>topH){navbg.addClass(\"scrollNav\")}else{navbg.removeClass(\"scrollNav\")}});});</script></body></html>";
    
    [allStr appendString:headStr];
    
    [allStr appendString:bodyStr];
    
    [allStr appendString:footStr];
    
    
    return allStr;
}
@end
